package experiment.e01.code;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/15 15:42
 * @package experiment.e01
 * @description 文件说明
 */

public class E04_KeyboardIO {
    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入姓名：");
        String name = scanner.nextLine();
        System.out.println("请输入身高：");
        float height = scanner.nextFloat();
        System.out.println("请输入年龄：");
        int age = scanner.nextInt();
        System.out.println("个人信息如下：");
        System.out.println(String.format("姓名：%s 身高：%f 年龄：%d", name, height, age));

    }
}
